package com.five.system.mapper;

import com.five.basic.mapper.BaseMapper;
import com.five.pojo.Permission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {

    /**
     * 根据sn查询permission
     *
     * @param permissionSn
     * @return
     */
    Permission loadBySn(String permissionSn);

    void save(Permission permission);

    List<String> queryByUserId(Long id);


}
